module ApplicationHelper
  def logged_in?
    return current_user ? true : false
  end

  def in_url(part)
    request.fullpath.split('/').include?(part) ? true : request.fullpath.match(('/' + part)) ? true : false
  end
end